package com.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dao.CommentDao;
import com.entity.Comment;
@Service
public class CommentService {

	@Resource
	private CommentDao cd;
	public int getSum(){
		return cd.getSum();
	}
	public List<Comment> getComment(int page){
		return cd.getComment(page);
	}
	public void addComment(Comment comment){
		cd.addComment(comment);
	}
}
